<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableStrains extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('strains', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('country_id')->index('country_id')->default(0)->comment('国家ID');
            $table->bigInteger('sea_area_id')->index('sea_area_id')->default(0)->comment('海域ID');
            $table->bigInteger('diseases_id')->index('diseases_id')->default(0)->comment('传染病ID');
            $table->string('strain_name',100)->index('strain_name')->comment('菌株名称');
            $table->text('characteristics')->nullable()->comment('治病特征');
            $table->text('drug')->nullable()->comment('耐药特征');
            $table->text('clinica')->nullable()->comment('临床表现');
            $table->text('treatment')->nullable()->comment('治疗方案');
            $table->string('check',2000)->nullable()->comment('实验室检查')->default('');
            $table->string('spread',200)->nullable()->comment('传播途径')->default('');
            $table->string('score',200)->nullable()->comment('信息来源')->default('');
            $table->string('remarks',1000)->nullable()->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('strains');
    }
}
